package com.yonyougov.devops.cruxcisupport.commitcontext;

import com.yonyougov.devops.cruxcisupport.commitcontext.vo.CommitContextInfoVo;
import com.yonyougov.devops.cruxcisupport.commitcontext.vo.CommitContextVo;
import com.yonyougov.devops.fwc.core.dao.BaseDao;
import org.apache.ibatis.annotations.Param;

import java.math.BigInteger;
import java.util.List;

/**
 * t_commit_context数据层
 */
public interface CommitContextDao extends BaseDao<CommitContextEntity, BigInteger> {
    //<!--用户自定义代码开始-->

    /**
     * 根据提测Id 查询提测内容详情
     * 条件: 提测单id
     *
     * @param commitTestId [java.math.BigInteger]
     * @return List<CommitContextDevelopUserVo>
     */
    List<CommitContextVo> findListByCommitTestId(@Param(value = "commitTestId") BigInteger commitTestId);

    /**
     * 查询提测内容详情
     * 条件: 提测单id
     *
     * @param commitTestId
     * @return [java.util.List: com.yonyougov.devops.cruxcisupport.commitcontext.vo.CommitContextInfoVo]
     */
    List<CommitContextInfoVo> findCommitContextByCommitTestId(BigInteger commitTestId);

    /**
     * 更新提测内容
     * 类型: 批量
     *
     * @param contextEntities 提测内容实体类
     */
    void batchUpdateCommitTestId(List<CommitContextEntity> contextEntities);
    //<!--用户自定义代码结束-->
}